<?php
/*
Plugin Name: WordPress to phpBB 3.0.x Bridge
Plugin URI: http://www.wordpress-gr.org
Description: Used to synchronize the users in WordPress and phpBB 3.0.x
Version: 1.0.1
Author: The Greek WordPress Comunity
Author URI: http://www.wordpress-gr.org
License: GPLv3
*/

/*******************************************************************************
 * Bridge for WordPress to phpBB 3.0.x
 * Copyright (C) 2009 Simplicity Point (Jason Sanborn)
 * jsanborn@simplicitypoint.com
 * http://www.simplicitypoint.com/
 * -----------------------------------------------------------------------------
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 * -----------------------------------------------------------------------------
 * This synchronizes the WordPress and phpBB sessions by using the phpBB
 * authentication as the master authentication. When this plugin is active the
 * user is redirected to the phpbb3 login page for logging in and logging out.
 * Registration is also handled from phpbb3, not from WordPress. If a phpbb3
 * user does not exist in the WordPress table (compared by email address), then
 * a new user is created in the WordPress table by cleaning the phpBB username.
 * Bots, guests and inactive users will force WordPress sessions to log out, if
 * one is active. In addition, when the plugin is active, many of the phpbb3
 * functions are made available for use.
*/

/* Plugin Variables */
$plugin_path = dirname(__FILE__);
$plugin_dir = basename(dirname(__FILE__));

/* Load language files */
load_plugin_textdomain('wp_phpbb_bridge', null, $plugin_dir . "/languages/");

/* Plugin Files */
include_once($plugin_path . '/admin.php');
include_once($plugin_path . '/functions.php');
include_once($plugin_path . '/plugin.php');
include_once($plugin_path . '/widget-links.php');
include_once($plugin_path . '/widget-meta.php');
include_once($plugin_path . '/widget-user.php');
include_once($plugin_path . '/widget-posts.php');

/* WordPress Hooks */
add_action('admin_menu', 'wpb_admin_menu');
add_action('init', 'wpb_init');

?>